import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [{
		path: '/',
		name: 'Home',
		component: Home
	},
	{
		path: '/ucenter',
		name: 'ucenter',
		component: () => import( /* webpackChunkName: "about" */ '../views/ucenter/Index.vue')
	},
	{
		path: '/workbench',
		name: 'workbench',
		component: () => import( /* webpackChunkName: "about" */ '../views/workbench/Index.vue')
	},
	{
		path: '/viewer',
		name: 'viewer',
		component: () => import( /* webpackChunkName: "about" */ '../views/viewer/Index.vue')
	},
	{
		path: '/train',
		name: 'train',
		component: () => import( /* webpackChunkName: "about" */ '../views/train/Index.vue')
	},
	{
		path: '/message',
		name: 'message',
		component: () => import( /* webpackChunkName: "about" */ '../views/message/Index.vue')
	},
]

const router = new VueRouter({
	routes
})

export default router
